package com.itheima.polymorphsm1;

public class Tortoise extends Animal{
    public String name = "乌龟";
    @Override
    public void eat() {
        System.out.println("乌龟吃虫子");
    }

    @Override
    public void sleep() {
        System.out.println("乌龟睡觉");
    }

    @Override
    public void run() {
        System.out.println("乌龟跑");
    }
}
